import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/execute_entity.dart';
import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';

import 'package:enterprise_v6_app/app/data/entities/application/role_personnel_entity.dart';

import 'package:enterprise_v6_app/app/data/entities/application/special_list/work_mode_config_entity.dart';

import 'package:enterprise_v6_app/app/data/entities/application/ticket_plan_entity.dart';


ExecuteEntity $ExecuteEntityFromJson(Map<String, dynamic> json) {
  final ExecuteEntity executeEntity = ExecuteEntity();
  final List<ExecuteFormValue>? formValue = (json['formValue'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<ExecuteFormValue>(e) as ExecuteFormValue).toList();
  if (formValue != null) {
    executeEntity.formValue = formValue;
  }
  final List<RolePersonnelEntity>? nextNodeExecutor = (json['nextNodeExecutor'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<RolePersonnelEntity>(e) as RolePersonnelEntity).toList();
  if (nextNodeExecutor != null) {
    executeEntity.nextNodeExecutor = nextNodeExecutor;
  }
  final String? startDate = jsonConvert.convert<String>(json['startDate']);
  if (startDate != null) {
    executeEntity.startDate = startDate;
  }
  final String? endDate = jsonConvert.convert<String>(json['endDate']);
  if (endDate != null) {
    executeEntity.endDate = endDate;
  }
  final String? nodeId = jsonConvert.convert<String>(json['nodeId']);
  if (nodeId != null) {
    executeEntity.nodeId = nodeId;
  }
  final String? processEncoding = jsonConvert.convert<String>(json['processEncoding']);
  if (processEncoding != null) {
    executeEntity.processEncoding = processEncoding;
  }
  final String? ticketReceiptId = jsonConvert.convert<String>(json['ticketReceiptId']);
  if (ticketReceiptId != null) {
    executeEntity.ticketReceiptId = ticketReceiptId;
  }
  final int? selectIndex = jsonConvert.convert<int>(json['selectIndex']);
  if (selectIndex != null) {
    executeEntity.selectIndex = selectIndex;
  }
  final String? specialJobCode = jsonConvert.convert<String>(json['specialJobCode']);
  if (specialJobCode != null) {
    executeEntity.specialJobCode = specialJobCode;
  }
  final String? rtemplateId = jsonConvert.convert<String>(json['rtemplateId']);
  if (rtemplateId != null) {
    executeEntity.rtemplateId = rtemplateId;
  }
  final List<String>? gasUrl = (json['gasUrl'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (gasUrl != null) {
    executeEntity.gasUrl = gasUrl;
  }
  final List<ExecuteTicketDiscloseList>? ticketDiscloseList = (json['ticketDiscloseList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<ExecuteTicketDiscloseList>(e) as ExecuteTicketDiscloseList).toList();
  if (ticketDiscloseList != null) {
    executeEntity.ticketDiscloseList = ticketDiscloseList;
  }
  final List<ExecuteTicketGasList>? ticketGasList = (json['ticketGasList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<ExecuteTicketGasList>(e) as ExecuteTicketGasList).toList();
  if (ticketGasList != null) {
    executeEntity.ticketGasList = ticketGasList;
  }
  final ExecuteTicketReceiptList? ticketReceiptList = jsonConvert.convert<ExecuteTicketReceiptList>(json['ticketReceiptList']);
  if (ticketReceiptList != null) {
    executeEntity.ticketReceiptList = ticketReceiptList;
  }
  final ExecuteWorkCheckList? workCheckList = jsonConvert.convert<ExecuteWorkCheckList>(json['workCheckList']);
  if (workCheckList != null) {
    executeEntity.workCheckList = workCheckList;
  }
  final List<ExecuteWorkCheckList>? workCheckLists = (json['workCheckLists'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<ExecuteWorkCheckList>(e) as ExecuteWorkCheckList).toList();
  if (workCheckLists != null) {
    executeEntity.workCheckLists = workCheckLists;
  }
  final List<ExecuteWorkSafetyMeasuresList>? workSafetyMeasuresList = (json['workSafetyMeasuresList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<ExecuteWorkSafetyMeasuresList>(e) as ExecuteWorkSafetyMeasuresList).toList();
  if (workSafetyMeasuresList != null) {
    executeEntity.workSafetyMeasuresList = workSafetyMeasuresList;
  }
  final List<ExecuteTicketReceiptListOperatorLists>? operatorLists = (json['operatorLists'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<ExecuteTicketReceiptListOperatorLists>(e) as ExecuteTicketReceiptListOperatorLists).toList();
  if (operatorLists != null) {
    executeEntity.operatorLists = operatorLists;
  }
  return executeEntity;
}

Map<String, dynamic> $ExecuteEntityToJson(ExecuteEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['formValue'] = entity.formValue?.map((v) => v.toJson()).toList();
  data['nextNodeExecutor'] = entity.nextNodeExecutor?.map((v) => v.toJson()).toList();
  data['startDate'] = entity.startDate;
  data['endDate'] = entity.endDate;
  data['nodeId'] = entity.nodeId;
  data['processEncoding'] = entity.processEncoding;
  data['ticketReceiptId'] = entity.ticketReceiptId;
  data['selectIndex'] = entity.selectIndex;
  data['specialJobCode'] = entity.specialJobCode;
  data['rtemplateId'] = entity.rtemplateId;
  data['gasUrl'] = entity.gasUrl;
  data['ticketDiscloseList'] = entity.ticketDiscloseList?.map((v) => v.toJson()).toList();
  data['ticketGasList'] = entity.ticketGasList?.map((v) => v.toJson()).toList();
  data['ticketReceiptList'] = entity.ticketReceiptList?.toJson();
  data['workCheckList'] = entity.workCheckList?.toJson();
  data['workCheckLists'] = entity.workCheckLists?.map((v) => v.toJson()).toList();
  data['workSafetyMeasuresList'] = entity.workSafetyMeasuresList?.map((v) => v.toJson()).toList();
  data['operatorLists'] = entity.operatorLists?.map((v) => v.toJson()).toList();
  return data;
}

extension ExecuteEntityExtension on ExecuteEntity {
  ExecuteEntity copyWith({
    List<ExecuteFormValue>? formValue,
    List<RolePersonnelEntity>? nextNodeExecutor,
    String? startDate,
    String? endDate,
    String? nodeId,
    String? processEncoding,
    String? ticketReceiptId,
    int? selectIndex,
    String? specialJobCode,
    String? rtemplateId,
    List<String>? gasUrl,
    List<ExecuteTicketDiscloseList>? ticketDiscloseList,
    List<ExecuteTicketGasList>? ticketGasList,
    ExecuteTicketReceiptList? ticketReceiptList,
    ExecuteWorkCheckList? workCheckList,
    List<ExecuteWorkCheckList>? workCheckLists,
    List<ExecuteWorkSafetyMeasuresList>? workSafetyMeasuresList,
    List<ExecuteTicketReceiptListOperatorLists>? operatorLists,
  }) {
    return ExecuteEntity()
      ..formValue = formValue ?? this.formValue
      ..nextNodeExecutor = nextNodeExecutor ?? this.nextNodeExecutor
      ..startDate = startDate ?? this.startDate
      ..endDate = endDate ?? this.endDate
      ..nodeId = nodeId ?? this.nodeId
      ..processEncoding = processEncoding ?? this.processEncoding
      ..ticketReceiptId = ticketReceiptId ?? this.ticketReceiptId
      ..selectIndex = selectIndex ?? this.selectIndex
      ..specialJobCode = specialJobCode ?? this.specialJobCode
      ..rtemplateId = rtemplateId ?? this.rtemplateId
      ..gasUrl = gasUrl ?? this.gasUrl
      ..ticketDiscloseList = ticketDiscloseList ?? this.ticketDiscloseList
      ..ticketGasList = ticketGasList ?? this.ticketGasList
      ..ticketReceiptList = ticketReceiptList ?? this.ticketReceiptList
      ..workCheckList = workCheckList ?? this.workCheckList
      ..workCheckLists = workCheckLists ?? this.workCheckLists
      ..workSafetyMeasuresList = workSafetyMeasuresList ?? this.workSafetyMeasuresList
      ..operatorLists = operatorLists ?? this.operatorLists;
  }
}

ExecuteFormValue $ExecuteFormValueFromJson(Map<String, dynamic> json) {
  final ExecuteFormValue executeFormValue = ExecuteFormValue();
  final String? businessDataId = jsonConvert.convert<String>(json['businessDataId']);
  if (businessDataId != null) {
    executeFormValue.businessDataId = businessDataId;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    executeFormValue.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    executeFormValue.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    executeFormValue.createDate = createDate;
  }
  final String? dictionaryTableId = jsonConvert.convert<String>(json['dictionaryTableId']);
  if (dictionaryTableId != null) {
    executeFormValue.dictionaryTableId = dictionaryTableId;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    executeFormValue.id = id;
  }
  final String? label = jsonConvert.convert<String>(json['label']);
  if (label != null) {
    executeFormValue.label = label;
  }
  final String? name = jsonConvert.convert<String>(json['name']);
  if (name != null) {
    executeFormValue.name = name;
  }
  final String? nodeId = jsonConvert.convert<String>(json['nodeId']);
  if (nodeId != null) {
    executeFormValue.nodeId = nodeId;
  }
  final String? processEncoding = jsonConvert.convert<String>(json['processEncoding']);
  if (processEncoding != null) {
    executeFormValue.processEncoding = processEncoding;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    executeFormValue.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    executeFormValue.updateDate = updateDate;
  }
  final String? value = jsonConvert.convert<String>(json['value']);
  if (value != null) {
    executeFormValue.value = value;
  }
  return executeFormValue;
}

Map<String, dynamic> $ExecuteFormValueToJson(ExecuteFormValue entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['businessDataId'] = entity.businessDataId;
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['dictionaryTableId'] = entity.dictionaryTableId;
  data['id'] = entity.id;
  data['label'] = entity.label;
  data['name'] = entity.name;
  data['nodeId'] = entity.nodeId;
  data['processEncoding'] = entity.processEncoding;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  data['value'] = entity.value;
  return data;
}

extension ExecuteFormValueExtension on ExecuteFormValue {
  ExecuteFormValue copyWith({
    String? businessDataId,
    String? companyCode,
    String? createBy,
    String? createDate,
    String? dictionaryTableId,
    String? id,
    String? label,
    String? name,
    String? nodeId,
    String? processEncoding,
    String? updateBy,
    String? updateDate,
    String? value,
  }) {
    return ExecuteFormValue()
      ..businessDataId = businessDataId ?? this.businessDataId
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..dictionaryTableId = dictionaryTableId ?? this.dictionaryTableId
      ..id = id ?? this.id
      ..label = label ?? this.label
      ..name = name ?? this.name
      ..nodeId = nodeId ?? this.nodeId
      ..processEncoding = processEncoding ?? this.processEncoding
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate
      ..value = value ?? this.value;
  }
}

ExecuteTicketDiscloseList $ExecuteTicketDiscloseListFromJson(Map<String, dynamic> json) {
  final ExecuteTicketDiscloseList executeTicketDiscloseList = ExecuteTicketDiscloseList();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    executeTicketDiscloseList.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    executeTicketDiscloseList.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    executeTicketDiscloseList.createDate = createDate;
  }
  final String? discloseDate = jsonConvert.convert<String>(json['discloseDate']);
  if (discloseDate != null) {
    executeTicketDiscloseList.discloseDate = discloseDate;
  }
  final List<String>? discloseFile = (json['discloseFile'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (discloseFile != null) {
    executeTicketDiscloseList.discloseFile = discloseFile;
  }
  final int? discloseType = jsonConvert.convert<int>(json['discloseType']);
  if (discloseType != null) {
    executeTicketDiscloseList.discloseType = discloseType;
  }
  final String? discloseUserId = jsonConvert.convert<String>(json['discloseUserId']);
  if (discloseUserId != null) {
    executeTicketDiscloseList.discloseUserId = discloseUserId;
  }
  final String? discloseUserName = jsonConvert.convert<String>(json['discloseUserName']);
  if (discloseUserName != null) {
    executeTicketDiscloseList.discloseUserName = discloseUserName;
  }
  final List<String>? discloseUserSign = (json['discloseUserSign'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (discloseUserSign != null) {
    executeTicketDiscloseList.discloseUserSign = discloseUserSign;
  }
  final String? discloseVideo = jsonConvert.convert<String>(json['discloseVideo']);
  if (discloseVideo != null) {
    executeTicketDiscloseList.discloseVideo = discloseVideo;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    executeTicketDiscloseList.id = id;
  }
  final String? ticketPlanId = jsonConvert.convert<String>(json['ticketPlanId']);
  if (ticketPlanId != null) {
    executeTicketDiscloseList.ticketPlanId = ticketPlanId;
  }
  final String? ticketReceiptId = jsonConvert.convert<String>(json['ticketReceiptId']);
  if (ticketReceiptId != null) {
    executeTicketDiscloseList.ticketReceiptId = ticketReceiptId;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    executeTicketDiscloseList.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    executeTicketDiscloseList.updateDate = updateDate;
  }
  return executeTicketDiscloseList;
}

Map<String, dynamic> $ExecuteTicketDiscloseListToJson(ExecuteTicketDiscloseList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['discloseDate'] = entity.discloseDate;
  data['discloseFile'] = entity.discloseFile;
  data['discloseType'] = entity.discloseType;
  data['discloseUserId'] = entity.discloseUserId;
  data['discloseUserName'] = entity.discloseUserName;
  data['discloseUserSign'] = entity.discloseUserSign;
  data['discloseVideo'] = entity.discloseVideo;
  data['id'] = entity.id;
  data['ticketPlanId'] = entity.ticketPlanId;
  data['ticketReceiptId'] = entity.ticketReceiptId;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  return data;
}

extension ExecuteTicketDiscloseListExtension on ExecuteTicketDiscloseList {
  ExecuteTicketDiscloseList copyWith({
    String? companyCode,
    String? createBy,
    String? createDate,
    String? discloseDate,
    List<String>? discloseFile,
    int? discloseType,
    String? discloseUserId,
    String? discloseUserName,
    List<String>? discloseUserSign,
    String? discloseVideo,
    String? id,
    String? ticketPlanId,
    String? ticketReceiptId,
    String? updateBy,
    String? updateDate,
  }) {
    return ExecuteTicketDiscloseList()
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..discloseDate = discloseDate ?? this.discloseDate
      ..discloseFile = discloseFile ?? this.discloseFile
      ..discloseType = discloseType ?? this.discloseType
      ..discloseUserId = discloseUserId ?? this.discloseUserId
      ..discloseUserName = discloseUserName ?? this.discloseUserName
      ..discloseUserSign = discloseUserSign ?? this.discloseUserSign
      ..discloseVideo = discloseVideo ?? this.discloseVideo
      ..id = id ?? this.id
      ..ticketPlanId = ticketPlanId ?? this.ticketPlanId
      ..ticketReceiptId = ticketReceiptId ?? this.ticketReceiptId
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate;
  }
}

ExecuteTicketGasList $ExecuteTicketGasListFromJson(Map<String, dynamic> json) {
  final ExecuteTicketGasList executeTicketGasList = ExecuteTicketGasList();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    executeTicketGasList.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    executeTicketGasList.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    executeTicketGasList.createDate = createDate;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    executeTicketGasList.id = id;
  }
  final String? sampleDate = jsonConvert.convert<String>(json['sampleDate']);
  if (sampleDate != null) {
    executeTicketGasList.sampleDate = sampleDate;
  }
  final int? sampleType = jsonConvert.convert<int>(json['sampleType']);
  if (sampleType != null) {
    executeTicketGasList.sampleType = sampleType;
  }
  final String? sampleUserId = jsonConvert.convert<String>(json['sampleUserId']);
  if (sampleUserId != null) {
    executeTicketGasList.sampleUserId = sampleUserId;
  }
  final String? sampleUserName = jsonConvert.convert<String>(json['sampleUserName']);
  if (sampleUserName != null) {
    executeTicketGasList.sampleUserName = sampleUserName;
  }
  final List<String>? sampleUserSign = (json['sampleUserSign'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (sampleUserSign != null) {
    executeTicketGasList.sampleUserSign = sampleUserSign;
  }
  final String? ticketPlanId = jsonConvert.convert<String>(json['ticketPlanId']);
  if (ticketPlanId != null) {
    executeTicketGasList.ticketPlanId = ticketPlanId;
  }
  final String? ticketReceiptId = jsonConvert.convert<String>(json['ticketReceiptId']);
  if (ticketReceiptId != null) {
    executeTicketGasList.ticketReceiptId = ticketReceiptId;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    executeTicketGasList.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    executeTicketGasList.updateDate = updateDate;
  }
  final String? addressName = jsonConvert.convert<String>(json['addressName']);
  if (addressName != null) {
    executeTicketGasList.addressName = addressName;
  }
  final List<String>? gasUrl = (json['gasUrl'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (gasUrl != null) {
    executeTicketGasList.gasUrl = gasUrl;
  }
  final List<ExecuteTicketGasListWorkGasJsonDTOList>? workGasJsonDTOList = (json['workGasJsonDTOList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<ExecuteTicketGasListWorkGasJsonDTOList>(e) as ExecuteTicketGasListWorkGasJsonDTOList).toList();
  if (workGasJsonDTOList != null) {
    executeTicketGasList.workGasJsonDTOList = workGasJsonDTOList;
  }
  final bool? isNewData = jsonConvert.convert<bool>(json['isNewData']);
  if (isNewData != null) {
    executeTicketGasList.isNewData = isNewData;
  }
  return executeTicketGasList;
}

Map<String, dynamic> $ExecuteTicketGasListToJson(ExecuteTicketGasList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['id'] = entity.id;
  data['sampleDate'] = entity.sampleDate;
  data['sampleType'] = entity.sampleType;
  data['sampleUserId'] = entity.sampleUserId;
  data['sampleUserName'] = entity.sampleUserName;
  data['sampleUserSign'] = entity.sampleUserSign;
  data['ticketPlanId'] = entity.ticketPlanId;
  data['ticketReceiptId'] = entity.ticketReceiptId;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  data['addressName'] = entity.addressName;
  data['gasUrl'] = entity.gasUrl;
  data['workGasJsonDTOList'] = entity.workGasJsonDTOList?.map((v) => v.toJson()).toList();
  data['isNewData'] = entity.isNewData;
  return data;
}

extension ExecuteTicketGasListExtension on ExecuteTicketGasList {
  ExecuteTicketGasList copyWith({
    String? companyCode,
    String? createBy,
    String? createDate,
    String? id,
    String? sampleDate,
    int? sampleType,
    String? sampleUserId,
    String? sampleUserName,
    List<String>? sampleUserSign,
    String? ticketPlanId,
    String? ticketReceiptId,
    String? updateBy,
    String? updateDate,
    String? addressName,
    List<String>? gasUrl,
    List<ExecuteTicketGasListWorkGasJsonDTOList>? workGasJsonDTOList,
    bool? isNewData,
  }) {
    return ExecuteTicketGasList()
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..id = id ?? this.id
      ..sampleDate = sampleDate ?? this.sampleDate
      ..sampleType = sampleType ?? this.sampleType
      ..sampleUserId = sampleUserId ?? this.sampleUserId
      ..sampleUserName = sampleUserName ?? this.sampleUserName
      ..sampleUserSign = sampleUserSign ?? this.sampleUserSign
      ..ticketPlanId = ticketPlanId ?? this.ticketPlanId
      ..ticketReceiptId = ticketReceiptId ?? this.ticketReceiptId
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate
      ..addressName = addressName ?? this.addressName
      ..gasUrl = gasUrl ?? this.gasUrl
      ..workGasJsonDTOList = workGasJsonDTOList ?? this.workGasJsonDTOList
      ..isNewData = isNewData ?? this.isNewData;
  }
}

ExecuteTicketGasListWorkGasJsonDTOList $ExecuteTicketGasListWorkGasJsonDTOListFromJson(Map<String, dynamic> json) {
  final ExecuteTicketGasListWorkGasJsonDTOList executeTicketGasListWorkGasJsonDTOList = ExecuteTicketGasListWorkGasJsonDTOList();
  final String? gasName = jsonConvert.convert<String>(json['gasName']);
  if (gasName != null) {
    executeTicketGasListWorkGasJsonDTOList.gasName = gasName;
  }
  final String? gasQualified = jsonConvert.convert<String>(json['gasQualified']);
  if (gasQualified != null) {
    executeTicketGasListWorkGasJsonDTOList.gasQualified = gasQualified;
  }
  final String? gasResult = jsonConvert.convert<String>(json['gasResult']);
  if (gasResult != null) {
    executeTicketGasListWorkGasJsonDTOList.gasResult = gasResult;
  }
  final String? gasTypeId = jsonConvert.convert<String>(json['gasTypeId']);
  if (gasTypeId != null) {
    executeTicketGasListWorkGasJsonDTOList.gasTypeId = gasTypeId;
  }
  final String? gasTypeName = jsonConvert.convert<String>(json['gasTypeName']);
  if (gasTypeName != null) {
    executeTicketGasListWorkGasJsonDTOList.gasTypeName = gasTypeName;
  }
  return executeTicketGasListWorkGasJsonDTOList;
}

Map<String, dynamic> $ExecuteTicketGasListWorkGasJsonDTOListToJson(ExecuteTicketGasListWorkGasJsonDTOList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['gasName'] = entity.gasName;
  data['gasQualified'] = entity.gasQualified;
  data['gasResult'] = entity.gasResult;
  data['gasTypeId'] = entity.gasTypeId;
  data['gasTypeName'] = entity.gasTypeName;
  return data;
}

extension ExecuteTicketGasListWorkGasJsonDTOListExtension on ExecuteTicketGasListWorkGasJsonDTOList {
  ExecuteTicketGasListWorkGasJsonDTOList copyWith({
    String? gasName,
    String? gasQualified,
    String? gasResult,
    String? gasTypeId,
    String? gasTypeName,
  }) {
    return ExecuteTicketGasListWorkGasJsonDTOList()
      ..gasName = gasName ?? this.gasName
      ..gasQualified = gasQualified ?? this.gasQualified
      ..gasResult = gasResult ?? this.gasResult
      ..gasTypeId = gasTypeId ?? this.gasTypeId
      ..gasTypeName = gasTypeName ?? this.gasTypeName;
  }
}

ExecuteTicketReceiptList $ExecuteTicketReceiptListFromJson(Map<String, dynamic> json) {
  final ExecuteTicketReceiptList executeTicketReceiptList = ExecuteTicketReceiptList();
  final List<String>? abnormalType = (json['abnormalType'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (abnormalType != null) {
    executeTicketReceiptList.abnormalType = abnormalType;
  }
  final String? applyUserId = jsonConvert.convert<String>(json['applyUserId']);
  if (applyUserId != null) {
    executeTicketReceiptList.applyUserId = applyUserId;
  }
  final String? applyUserName = jsonConvert.convert<String>(json['applyUserName']);
  if (applyUserName != null) {
    executeTicketReceiptList.applyUserName = applyUserName;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    executeTicketReceiptList.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    executeTicketReceiptList.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    executeTicketReceiptList.createDate = createDate;
  }
  final String? applyDate = jsonConvert.convert<String>(json['applyDate']);
  if (applyDate != null) {
    executeTicketReceiptList.applyDate = applyDate;
  }
  final String? endDate = jsonConvert.convert<String>(json['endDate']);
  if (endDate != null) {
    executeTicketReceiptList.endDate = endDate;
  }
  final List<String>? gasUrl = (json['gasUrl'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (gasUrl != null) {
    executeTicketReceiptList.gasUrl = gasUrl;
  }
  final String? guardianUserId = jsonConvert.convert<String>(json['guardianUserId']);
  if (guardianUserId != null) {
    executeTicketReceiptList.guardianUserId = guardianUserId;
  }
  final String? guardianUserName = jsonConvert.convert<String>(json['guardianUserName']);
  if (guardianUserName != null) {
    executeTicketReceiptList.guardianUserName = guardianUserName;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    executeTicketReceiptList.id = id;
  }
  final List<ExecuteTicketReceiptListOperatorLists>? operatorLists = (json['operatorLists'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<ExecuteTicketReceiptListOperatorLists>(e) as ExecuteTicketReceiptListOperatorLists).toList();
  if (operatorLists != null) {
    executeTicketReceiptList.operatorLists = operatorLists;
  }
  final String? otherData = jsonConvert.convert<String>(json['otherData']);
  if (otherData != null) {
    executeTicketReceiptList.otherData = otherData;
  }
  final List<String>? otherTicketNo = (json['otherTicketNo'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (otherTicketNo != null) {
    executeTicketReceiptList.otherTicketNo = otherTicketNo;
  }
  final String? processType = jsonConvert.convert<String>(json['processType']);
  if (processType != null) {
    executeTicketReceiptList.processType = processType;
  }
  final String? startDate = jsonConvert.convert<String>(json['startDate']);
  if (startDate != null) {
    executeTicketReceiptList.startDate = startDate;
  }
  final String? ticketBigType = jsonConvert.convert<String>(json['ticketBigType']);
  if (ticketBigType != null) {
    executeTicketReceiptList.ticketBigType = ticketBigType;
  }
  final String? ticketBigTypeId = jsonConvert.convert<String>(json['ticketBigTypeId']);
  if (ticketBigTypeId != null) {
    executeTicketReceiptList.ticketBigTypeId = ticketBigTypeId;
  }
  final String? ticketBigTypeName = jsonConvert.convert<String>(json['ticketBigTypeName']);
  if (ticketBigTypeName != null) {
    executeTicketReceiptList.ticketBigTypeName = ticketBigTypeName;
  }
  final String? ticketPlanId = jsonConvert.convert<String>(json['ticketPlanId']);
  if (ticketPlanId != null) {
    executeTicketReceiptList.ticketPlanId = ticketPlanId;
  }
  final String? ticketTypeId = jsonConvert.convert<String>(json['ticketTypeId']);
  if (ticketTypeId != null) {
    executeTicketReceiptList.ticketTypeId = ticketTypeId;
  }
  final String? ticketTypeName = jsonConvert.convert<String>(json['ticketTypeName']);
  if (ticketTypeName != null) {
    executeTicketReceiptList.ticketTypeName = ticketTypeName;
  }
  final int? type = jsonConvert.convert<int>(json['type']);
  if (type != null) {
    executeTicketReceiptList.type = type;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    executeTicketReceiptList.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    executeTicketReceiptList.updateDate = updateDate;
  }
  final String? workDepartmentId = jsonConvert.convert<String>(json['workDepartmentId']);
  if (workDepartmentId != null) {
    executeTicketReceiptList.workDepartmentId = workDepartmentId;
  }
  final String? workDepartmentName = jsonConvert.convert<String>(json['workDepartmentName']);
  if (workDepartmentName != null) {
    executeTicketReceiptList.workDepartmentName = workDepartmentName;
  }
  final int? workDepartmentType = jsonConvert.convert<int>(json['workDepartmentType']);
  if (workDepartmentType != null) {
    executeTicketReceiptList.workDepartmentType = workDepartmentType;
  }
  final ExecuteTicketReceiptListWorkOtherDataDTO? workOtherDataDTO = jsonConvert.convert<ExecuteTicketReceiptListWorkOtherDataDTO>(json['workOtherDataDTO']);
  if (workOtherDataDTO != null) {
    executeTicketReceiptList.workOtherDataDTO = workOtherDataDTO;
  }
  final List<String>? workPlan = (json['workPlan'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (workPlan != null) {
    executeTicketReceiptList.workPlan = workPlan;
  }
  final TicketPlanEntity? ticketPlanList = jsonConvert.convert<TicketPlanEntity>(json['ticketPlanList']);
  if (ticketPlanList != null) {
    executeTicketReceiptList.ticketPlanList = ticketPlanList;
  }
  final String? receiptNo = jsonConvert.convert<String>(json['receiptNo']);
  if (receiptNo != null) {
    executeTicketReceiptList.receiptNo = receiptNo;
  }
  final List<String>? liveVideoUrl = (json['liveVideoUrl'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (liveVideoUrl != null) {
    executeTicketReceiptList.liveVideoUrl = liveVideoUrl;
  }
  final bool? isChecked = jsonConvert.convert<bool>(json['isChecked']);
  if (isChecked != null) {
    executeTicketReceiptList.isChecked = isChecked;
  }
  return executeTicketReceiptList;
}

Map<String, dynamic> $ExecuteTicketReceiptListToJson(ExecuteTicketReceiptList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['abnormalType'] = entity.abnormalType;
  data['applyUserId'] = entity.applyUserId;
  data['applyUserName'] = entity.applyUserName;
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['applyDate'] = entity.applyDate;
  data['endDate'] = entity.endDate;
  data['gasUrl'] = entity.gasUrl;
  data['guardianUserId'] = entity.guardianUserId;
  data['guardianUserName'] = entity.guardianUserName;
  data['id'] = entity.id;
  data['operatorLists'] = entity.operatorLists?.map((v) => v.toJson()).toList();
  data['otherData'] = entity.otherData;
  data['otherTicketNo'] = entity.otherTicketNo;
  data['processType'] = entity.processType;
  data['startDate'] = entity.startDate;
  data['ticketBigType'] = entity.ticketBigType;
  data['ticketBigTypeId'] = entity.ticketBigTypeId;
  data['ticketBigTypeName'] = entity.ticketBigTypeName;
  data['ticketPlanId'] = entity.ticketPlanId;
  data['ticketTypeId'] = entity.ticketTypeId;
  data['ticketTypeName'] = entity.ticketTypeName;
  data['type'] = entity.type;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  data['workDepartmentId'] = entity.workDepartmentId;
  data['workDepartmentName'] = entity.workDepartmentName;
  data['workDepartmentType'] = entity.workDepartmentType;
  data['workOtherDataDTO'] = entity.workOtherDataDTO?.toJson();
  data['workPlan'] = entity.workPlan;
  data['ticketPlanList'] = entity.ticketPlanList?.toJson();
  data['receiptNo'] = entity.receiptNo;
  data['liveVideoUrl'] = entity.liveVideoUrl;
  data['isChecked'] = entity.isChecked;
  return data;
}

extension ExecuteTicketReceiptListExtension on ExecuteTicketReceiptList {
  ExecuteTicketReceiptList copyWith({
    List<String>? abnormalType,
    String? applyUserId,
    String? applyUserName,
    String? companyCode,
    String? createBy,
    String? createDate,
    String? applyDate,
    String? endDate,
    List<String>? gasUrl,
    String? guardianUserId,
    String? guardianUserName,
    String? id,
    List<ExecuteTicketReceiptListOperatorLists>? operatorLists,
    String? otherData,
    List<String>? otherTicketNo,
    String? processType,
    String? startDate,
    String? ticketBigType,
    String? ticketBigTypeId,
    String? ticketBigTypeName,
    String? ticketPlanId,
    String? ticketTypeId,
    String? ticketTypeName,
    int? type,
    String? updateBy,
    String? updateDate,
    String? workDepartmentId,
    String? workDepartmentName,
    int? workDepartmentType,
    ExecuteTicketReceiptListWorkOtherDataDTO? workOtherDataDTO,
    List<String>? workPlan,
    TicketPlanEntity? ticketPlanList,
    String? receiptNo,
    List<String>? liveVideoUrl,
    bool? isChecked,
  }) {
    return ExecuteTicketReceiptList()
      ..abnormalType = abnormalType ?? this.abnormalType
      ..applyUserId = applyUserId ?? this.applyUserId
      ..applyUserName = applyUserName ?? this.applyUserName
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..applyDate = applyDate ?? this.applyDate
      ..endDate = endDate ?? this.endDate
      ..gasUrl = gasUrl ?? this.gasUrl
      ..guardianUserId = guardianUserId ?? this.guardianUserId
      ..guardianUserName = guardianUserName ?? this.guardianUserName
      ..id = id ?? this.id
      ..operatorLists = operatorLists ?? this.operatorLists
      ..otherData = otherData ?? this.otherData
      ..otherTicketNo = otherTicketNo ?? this.otherTicketNo
      ..processType = processType ?? this.processType
      ..startDate = startDate ?? this.startDate
      ..ticketBigType = ticketBigType ?? this.ticketBigType
      ..ticketBigTypeId = ticketBigTypeId ?? this.ticketBigTypeId
      ..ticketBigTypeName = ticketBigTypeName ?? this.ticketBigTypeName
      ..ticketPlanId = ticketPlanId ?? this.ticketPlanId
      ..ticketTypeId = ticketTypeId ?? this.ticketTypeId
      ..ticketTypeName = ticketTypeName ?? this.ticketTypeName
      ..type = type ?? this.type
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate
      ..workDepartmentId = workDepartmentId ?? this.workDepartmentId
      ..workDepartmentName = workDepartmentName ?? this.workDepartmentName
      ..workDepartmentType = workDepartmentType ?? this.workDepartmentType
      ..workOtherDataDTO = workOtherDataDTO ?? this.workOtherDataDTO
      ..workPlan = workPlan ?? this.workPlan
      ..ticketPlanList = ticketPlanList ?? this.ticketPlanList
      ..receiptNo = receiptNo ?? this.receiptNo
      ..liveVideoUrl = liveVideoUrl ?? this.liveVideoUrl
      ..isChecked = isChecked ?? this.isChecked;
  }
}

ExecuteTicketReceiptListOperatorLists $ExecuteTicketReceiptListOperatorListsFromJson(Map<String, dynamic> json) {
  final ExecuteTicketReceiptListOperatorLists executeTicketReceiptListOperatorLists = ExecuteTicketReceiptListOperatorLists();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    executeTicketReceiptListOperatorLists.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    executeTicketReceiptListOperatorLists.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    executeTicketReceiptListOperatorLists.createDate = createDate;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    executeTicketReceiptListOperatorLists.id = id;
  }
  final String? operatorCertificateId = jsonConvert.convert<String>(json['operatorCertificateId']);
  if (operatorCertificateId != null) {
    executeTicketReceiptListOperatorLists.operatorCertificateId = operatorCertificateId;
  }
  final int? operatorType = jsonConvert.convert<int>(json['operatorType']);
  if (operatorType != null) {
    executeTicketReceiptListOperatorLists.operatorType = operatorType;
  }
  final String? operatorUserId = jsonConvert.convert<String>(json['operatorUserId']);
  if (operatorUserId != null) {
    executeTicketReceiptListOperatorLists.operatorUserId = operatorUserId;
  }
  final String? operatorUserName = jsonConvert.convert<String>(json['operatorUserName']);
  if (operatorUserName != null) {
    executeTicketReceiptListOperatorLists.operatorUserName = operatorUserName;
  }
  final String? operatorUserSign = jsonConvert.convert<String>(json['operatorUserSign']);
  if (operatorUserSign != null) {
    executeTicketReceiptListOperatorLists.operatorUserSign = operatorUserSign;
  }
  final String? ticketPlanId = jsonConvert.convert<String>(json['ticketPlanId']);
  if (ticketPlanId != null) {
    executeTicketReceiptListOperatorLists.ticketPlanId = ticketPlanId;
  }
  final String? ticketReceiptId = jsonConvert.convert<String>(json['ticketReceiptId']);
  if (ticketReceiptId != null) {
    executeTicketReceiptListOperatorLists.ticketReceiptId = ticketReceiptId;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    executeTicketReceiptListOperatorLists.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    executeTicketReceiptListOperatorLists.updateDate = updateDate;
  }
  final String? operatorName = jsonConvert.convert<String>(json['operatorName']);
  if (operatorName != null) {
    executeTicketReceiptListOperatorLists.operatorName = operatorName;
  }
  final int? number = jsonConvert.convert<int>(json['number']);
  if (number != null) {
    executeTicketReceiptListOperatorLists.number = number;
  }
  final bool? isChecked = jsonConvert.convert<bool>(json['isChecked']);
  if (isChecked != null) {
    executeTicketReceiptListOperatorLists.isChecked = isChecked;
  }
  return executeTicketReceiptListOperatorLists;
}

Map<String, dynamic> $ExecuteTicketReceiptListOperatorListsToJson(ExecuteTicketReceiptListOperatorLists entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['id'] = entity.id;
  data['operatorCertificateId'] = entity.operatorCertificateId;
  data['operatorType'] = entity.operatorType;
  data['operatorUserId'] = entity.operatorUserId;
  data['operatorUserName'] = entity.operatorUserName;
  data['operatorUserSign'] = entity.operatorUserSign;
  data['ticketPlanId'] = entity.ticketPlanId;
  data['ticketReceiptId'] = entity.ticketReceiptId;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  data['operatorName'] = entity.operatorName;
  data['number'] = entity.number;
  data['isChecked'] = entity.isChecked;
  return data;
}

extension ExecuteTicketReceiptListOperatorListsExtension on ExecuteTicketReceiptListOperatorLists {
  ExecuteTicketReceiptListOperatorLists copyWith({
    String? companyCode,
    String? createBy,
    String? createDate,
    String? id,
    String? operatorCertificateId,
    int? operatorType,
    String? operatorUserId,
    String? operatorUserName,
    String? operatorUserSign,
    String? ticketPlanId,
    String? ticketReceiptId,
    String? updateBy,
    String? updateDate,
    String? operatorName,
    int? number,
    bool? isChecked,
  }) {
    return ExecuteTicketReceiptListOperatorLists()
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..id = id ?? this.id
      ..operatorCertificateId = operatorCertificateId ?? this.operatorCertificateId
      ..operatorType = operatorType ?? this.operatorType
      ..operatorUserId = operatorUserId ?? this.operatorUserId
      ..operatorUserName = operatorUserName ?? this.operatorUserName
      ..operatorUserSign = operatorUserSign ?? this.operatorUserSign
      ..ticketPlanId = ticketPlanId ?? this.ticketPlanId
      ..ticketReceiptId = ticketReceiptId ?? this.ticketReceiptId
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate
      ..operatorName = operatorName ?? this.operatorName
      ..number = number ?? this.number
      ..isChecked = isChecked ?? this.isChecked;
  }
}

ExecuteTicketReceiptListWorkOtherDataDTO $ExecuteTicketReceiptListWorkOtherDataDTOFromJson(Map<String, dynamic> json) {
  final ExecuteTicketReceiptListWorkOtherDataDTO executeTicketReceiptListWorkOtherDataDTO = ExecuteTicketReceiptListWorkOtherDataDTO();
  final List<String>? blindPlatePosition = (json['blindPlatePosition'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (blindPlatePosition != null) {
    executeTicketReceiptListWorkOtherDataDTO.blindPlatePosition = blindPlatePosition;
  }
  final String? confinedSpaceMediumName = jsonConvert.convert<String>(json['confinedSpaceMediumName']);
  if (confinedSpaceMediumName != null) {
    executeTicketReceiptListWorkOtherDataDTO.confinedSpaceMediumName = confinedSpaceMediumName;
  }
  final String? confinedSpaceName = jsonConvert.convert<String>(json['confinedSpaceName']);
  if (confinedSpaceName != null) {
    executeTicketReceiptListWorkOtherDataDTO.confinedSpaceName = confinedSpaceName;
  }
  final List<Involve>? involveList = (json['involveList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<Involve>(e) as Involve).toList();
  if (involveList != null) {
    executeTicketReceiptListWorkOtherDataDTO.involveList = involveList;
  }
  final String? operatorHeight = jsonConvert.convert<String>(json['operatorHeight']);
  if (operatorHeight != null) {
    executeTicketReceiptListWorkOtherDataDTO.operatorHeight = operatorHeight;
  }
  final String? heightLevel = jsonConvert.convert<String>(json['heightLevel']);
  if (heightLevel != null) {
    executeTicketReceiptListWorkOtherDataDTO.heightLevel = heightLevel;
  }
  final String? powerAccessDeviceName = jsonConvert.convert<String>(json['powerAccessDeviceName']);
  if (powerAccessDeviceName != null) {
    executeTicketReceiptListWorkOtherDataDTO.powerAccessDeviceName = powerAccessDeviceName;
  }
  final String? powerAccessDevicePower = jsonConvert.convert<String>(json['powerAccessDevicePower']);
  if (powerAccessDevicePower != null) {
    executeTicketReceiptListWorkOtherDataDTO.powerAccessDevicePower = powerAccessDevicePower;
  }
  final String? powerAccessPoint = jsonConvert.convert<String>(json['powerAccessPoint']);
  if (powerAccessPoint != null) {
    executeTicketReceiptListWorkOtherDataDTO.powerAccessPoint = powerAccessPoint;
  }
  final String? powerAccessPower = jsonConvert.convert<String>(json['powerAccessPower']);
  if (powerAccessPower != null) {
    executeTicketReceiptListWorkOtherDataDTO.powerAccessPower = powerAccessPower;
  }
  final String? powerAccessVoltage = jsonConvert.convert<String>(json['powerAccessVoltage']);
  if (powerAccessVoltage != null) {
    executeTicketReceiptListWorkOtherDataDTO.powerAccessVoltage = powerAccessVoltage;
  }
  final List<String>? powerOffMapUrl = (json['powerOffMapUrl'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (powerOffMapUrl != null) {
    executeTicketReceiptListWorkOtherDataDTO.powerOffMapUrl = powerOffMapUrl;
  }
  final List<String>? sign = (json['sign'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (sign != null) {
    executeTicketReceiptListWorkOtherDataDTO.sign = sign;
  }
  final String? signTime = jsonConvert.convert<String>(json['signTime']);
  if (signTime != null) {
    executeTicketReceiptListWorkOtherDataDTO.signTime = signTime;
  }
  final String? powerOffReason = jsonConvert.convert<String>(json['powerOffReason']);
  if (powerOffReason != null) {
    executeTicketReceiptListWorkOtherDataDTO.powerOffReason = powerOffReason;
  }
  final String? powerOffRemark = jsonConvert.convert<String>(json['powerOffRemark']);
  if (powerOffRemark != null) {
    executeTicketReceiptListWorkOtherDataDTO.powerOffRemark = powerOffRemark;
  }
  final List<String>? simpleMapUrl = (json['simpleMapUrl'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (simpleMapUrl != null) {
    executeTicketReceiptListWorkOtherDataDTO.simpleMapUrl = simpleMapUrl;
  }
  final String? slingName = jsonConvert.convert<String>(json['slingName']);
  if (slingName != null) {
    executeTicketReceiptListWorkOtherDataDTO.slingName = slingName;
  }
  final String? slingWeight = jsonConvert.convert<String>(json['slingWeight']);
  if (slingWeight != null) {
    executeTicketReceiptListWorkOtherDataDTO.slingWeight = slingWeight;
  }
  final String? workArea = jsonConvert.convert<String>(json['workArea']);
  if (workArea != null) {
    executeTicketReceiptListWorkOtherDataDTO.workArea = workArea;
  }
  final String? workDepth = jsonConvert.convert<String>(json['workDepth']);
  if (workDepth != null) {
    executeTicketReceiptListWorkOtherDataDTO.workDepth = workDepth;
  }
  final double? latitude = jsonConvert.convert<double>(json['latitude']);
  if (latitude != null) {
    executeTicketReceiptListWorkOtherDataDTO.latitude = latitude;
  }
  final double? longitude = jsonConvert.convert<double>(json['longitude']);
  if (longitude != null) {
    executeTicketReceiptListWorkOtherDataDTO.longitude = longitude;
  }
  final String? otherTicketAddress = jsonConvert.convert<String>(json['otherTicketAddress']);
  if (otherTicketAddress != null) {
    executeTicketReceiptListWorkOtherDataDTO.otherTicketAddress = otherTicketAddress;
  }
  final String? blindPlateType = jsonConvert.convert<String>(json['blindPlateType']);
  if (blindPlateType != null) {
    executeTicketReceiptListWorkOtherDataDTO.blindPlateType = blindPlateType;
  }
  final List<WorkModeConfigEntity>? workModeConfigs = (json['workModeConfigs'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<WorkModeConfigEntity>(e) as WorkModeConfigEntity).toList();
  if (workModeConfigs != null) {
    executeTicketReceiptListWorkOtherDataDTO.workModeConfigs = workModeConfigs;
  }
  final String? workPlace = jsonConvert.convert<String>(json['workPlace']);
  if (workPlace != null) {
    executeTicketReceiptListWorkOtherDataDTO.workPlace = workPlace;
  }
  final ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO? workPiPingDTO = jsonConvert.convert<ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO>(
      json['workPiPingDTO']);
  if (workPiPingDTO != null) {
    executeTicketReceiptListWorkOtherDataDTO.workPiPingDTO = workPiPingDTO;
  }
  return executeTicketReceiptListWorkOtherDataDTO;
}

Map<String, dynamic> $ExecuteTicketReceiptListWorkOtherDataDTOToJson(ExecuteTicketReceiptListWorkOtherDataDTO entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['blindPlatePosition'] = entity.blindPlatePosition;
  data['confinedSpaceMediumName'] = entity.confinedSpaceMediumName;
  data['confinedSpaceName'] = entity.confinedSpaceName;
  data['involveList'] = entity.involveList?.map((v) => v.toJson()).toList();
  data['operatorHeight'] = entity.operatorHeight;
  data['heightLevel'] = entity.heightLevel;
  data['powerAccessDeviceName'] = entity.powerAccessDeviceName;
  data['powerAccessDevicePower'] = entity.powerAccessDevicePower;
  data['powerAccessPoint'] = entity.powerAccessPoint;
  data['powerAccessPower'] = entity.powerAccessPower;
  data['powerAccessVoltage'] = entity.powerAccessVoltage;
  data['powerOffMapUrl'] = entity.powerOffMapUrl;
  data['sign'] = entity.sign;
  data['signTime'] = entity.signTime;
  data['powerOffReason'] = entity.powerOffReason;
  data['powerOffRemark'] = entity.powerOffRemark;
  data['simpleMapUrl'] = entity.simpleMapUrl;
  data['slingName'] = entity.slingName;
  data['slingWeight'] = entity.slingWeight;
  data['workArea'] = entity.workArea;
  data['workDepth'] = entity.workDepth;
  data['latitude'] = entity.latitude;
  data['longitude'] = entity.longitude;
  data['otherTicketAddress'] = entity.otherTicketAddress;
  data['blindPlateType'] = entity.blindPlateType;
  data['workModeConfigs'] = entity.workModeConfigs?.map((v) => v.toJson()).toList();
  data['workPlace'] = entity.workPlace;
  data['workPiPingDTO'] = entity.workPiPingDTO?.toJson();
  return data;
}

extension ExecuteTicketReceiptListWorkOtherDataDTOExtension on ExecuteTicketReceiptListWorkOtherDataDTO {
  ExecuteTicketReceiptListWorkOtherDataDTO copyWith({
    List<String>? blindPlatePosition,
    String? confinedSpaceMediumName,
    String? confinedSpaceName,
    List<Involve>? involveList,
    String? operatorHeight,
    String? heightLevel,
    String? powerAccessDeviceName,
    String? powerAccessDevicePower,
    String? powerAccessPoint,
    String? powerAccessPower,
    String? powerAccessVoltage,
    List<String>? powerOffMapUrl,
    List<String>? sign,
    String? signTime,
    String? powerOffReason,
    String? powerOffRemark,
    List<String>? simpleMapUrl,
    String? slingName,
    String? slingWeight,
    String? workArea,
    String? workDepth,
    double? latitude,
    double? longitude,
    String? otherTicketAddress,
    String? blindPlateType,
    List<WorkModeConfigEntity>? workModeConfigs,
    String? workPlace,
    ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO? workPiPingDTO,
  }) {
    return ExecuteTicketReceiptListWorkOtherDataDTO()
      ..blindPlatePosition = blindPlatePosition ?? this.blindPlatePosition
      ..confinedSpaceMediumName = confinedSpaceMediumName ?? this.confinedSpaceMediumName
      ..confinedSpaceName = confinedSpaceName ?? this.confinedSpaceName
      ..involveList = involveList ?? this.involveList
      ..operatorHeight = operatorHeight ?? this.operatorHeight
      ..heightLevel = heightLevel ?? this.heightLevel
      ..powerAccessDeviceName = powerAccessDeviceName ?? this.powerAccessDeviceName
      ..powerAccessDevicePower = powerAccessDevicePower ?? this.powerAccessDevicePower
      ..powerAccessPoint = powerAccessPoint ?? this.powerAccessPoint
      ..powerAccessPower = powerAccessPower ?? this.powerAccessPower
      ..powerAccessVoltage = powerAccessVoltage ?? this.powerAccessVoltage
      ..powerOffMapUrl = powerOffMapUrl ?? this.powerOffMapUrl
      ..sign = sign ?? this.sign
      ..signTime = signTime ?? this.signTime
      ..powerOffReason = powerOffReason ?? this.powerOffReason
      ..powerOffRemark = powerOffRemark ?? this.powerOffRemark
      ..simpleMapUrl = simpleMapUrl ?? this.simpleMapUrl
      ..slingName = slingName ?? this.slingName
      ..slingWeight = slingWeight ?? this.slingWeight
      ..workArea = workArea ?? this.workArea
      ..workDepth = workDepth ?? this.workDepth
      ..latitude = latitude ?? this.latitude
      ..longitude = longitude ?? this.longitude
      ..otherTicketAddress = otherTicketAddress ?? this.otherTicketAddress
      ..blindPlateType = blindPlateType ?? this.blindPlateType
      ..workModeConfigs = workModeConfigs ?? this.workModeConfigs
      ..workPlace = workPlace ?? this.workPlace
      ..workPiPingDTO = workPiPingDTO ?? this.workPiPingDTO;
  }
}

Involve $InvolveFromJson(Map<String, dynamic> json) {
  final Involve involve = Involve();
  final String? involveUnitId = jsonConvert.convert<String>(json['involveUnitId']);
  if (involveUnitId != null) {
    involve.involveUnitId = involveUnitId;
  }
  final String? involveUnitName = jsonConvert.convert<String>(json['involveUnitName']);
  if (involveUnitName != null) {
    involve.involveUnitName = involveUnitName;
  }
  return involve;
}

Map<String, dynamic> $InvolveToJson(Involve entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['involveUnitId'] = entity.involveUnitId;
  data['involveUnitName'] = entity.involveUnitName;
  return data;
}

extension InvolveExtension on Involve {
  Involve copyWith({
    String? involveUnitId,
    String? involveUnitName,
  }) {
    return Involve()
      ..involveUnitId = involveUnitId ?? this.involveUnitId
      ..involveUnitName = involveUnitName ?? this.involveUnitName;
  }
}

ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO $ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTOFromJson(Map<String, dynamic> json) {
  final ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO executeTicketReceiptListWorkOtherDataDTOWorkPiPingDTO = ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO();
  final String? blindPlateMaterial = jsonConvert.convert<String>(json['blindPlateMaterial']);
  if (blindPlateMaterial != null) {
    executeTicketReceiptListWorkOtherDataDTOWorkPiPingDTO.blindPlateMaterial = blindPlateMaterial;
  }
  final String? blindPlateNumber = jsonConvert.convert<String>(json['blindPlateNumber']);
  if (blindPlateNumber != null) {
    executeTicketReceiptListWorkOtherDataDTOWorkPiPingDTO.blindPlateNumber = blindPlateNumber;
  }
  final String? blindPlateSpecification = jsonConvert.convert<String>(json['blindPlateSpecification']);
  if (blindPlateSpecification != null) {
    executeTicketReceiptListWorkOtherDataDTOWorkPiPingDTO.blindPlateSpecification = blindPlateSpecification;
  }
  final String? pipeMedium = jsonConvert.convert<String>(json['pipeMedium']);
  if (pipeMedium != null) {
    executeTicketReceiptListWorkOtherDataDTOWorkPiPingDTO.pipeMedium = pipeMedium;
  }
  final String? pipeName = jsonConvert.convert<String>(json['pipeName']);
  if (pipeName != null) {
    executeTicketReceiptListWorkOtherDataDTOWorkPiPingDTO.pipeName = pipeName;
  }
  final String? pipePressure = jsonConvert.convert<String>(json['pipePressure']);
  if (pipePressure != null) {
    executeTicketReceiptListWorkOtherDataDTOWorkPiPingDTO.pipePressure = pipePressure;
  }
  final String? pipeTemperature = jsonConvert.convert<String>(json['pipeTemperature']);
  if (pipeTemperature != null) {
    executeTicketReceiptListWorkOtherDataDTOWorkPiPingDTO.pipeTemperature = pipeTemperature;
  }
  return executeTicketReceiptListWorkOtherDataDTOWorkPiPingDTO;
}

Map<String, dynamic> $ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTOToJson(ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['blindPlateMaterial'] = entity.blindPlateMaterial;
  data['blindPlateNumber'] = entity.blindPlateNumber;
  data['blindPlateSpecification'] = entity.blindPlateSpecification;
  data['pipeMedium'] = entity.pipeMedium;
  data['pipeName'] = entity.pipeName;
  data['pipePressure'] = entity.pipePressure;
  data['pipeTemperature'] = entity.pipeTemperature;
  return data;
}

extension ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTOExtension on ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO {
  ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO copyWith({
    String? blindPlateMaterial,
    String? blindPlateNumber,
    String? blindPlateSpecification,
    String? pipeMedium,
    String? pipeName,
    String? pipePressure,
    String? pipeTemperature,
  }) {
    return ExecuteTicketReceiptListWorkOtherDataDTOWorkPiPingDTO()
      ..blindPlateMaterial = blindPlateMaterial ?? this.blindPlateMaterial
      ..blindPlateNumber = blindPlateNumber ?? this.blindPlateNumber
      ..blindPlateSpecification = blindPlateSpecification ?? this.blindPlateSpecification
      ..pipeMedium = pipeMedium ?? this.pipeMedium
      ..pipeName = pipeName ?? this.pipeName
      ..pipePressure = pipePressure ?? this.pipePressure
      ..pipeTemperature = pipeTemperature ?? this.pipeTemperature;
  }
}

ExecuteWorkCheckList $ExecuteWorkCheckListFromJson(Map<String, dynamic> json) {
  final ExecuteWorkCheckList executeWorkCheckList = ExecuteWorkCheckList();
  final String? checkDate = jsonConvert.convert<String>(json['checkDate']);
  if (checkDate != null) {
    executeWorkCheckList.checkDate = checkDate;
  }
  final List<String>? checkImage = (json['checkImage'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (checkImage != null) {
    executeWorkCheckList.checkImage = checkImage;
  }
  final String? checkProject = jsonConvert.convert<String>(json['checkProject']);
  if (checkProject != null) {
    executeWorkCheckList.checkProject = checkProject;
  }
  final String? checkReason = jsonConvert.convert<String>(json['checkReason']);
  if (checkReason != null) {
    executeWorkCheckList.checkReason = checkReason;
  }
  final String? checkUserId = jsonConvert.convert<String>(json['checkUserId']);
  if (checkUserId != null) {
    executeWorkCheckList.checkUserId = checkUserId;
  }
  final String? checkUserName = jsonConvert.convert<String>(json['checkUserName']);
  if (checkUserName != null) {
    executeWorkCheckList.checkUserName = checkUserName;
  }
  final List<String>? checkUserSign = (json['checkUserSign'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (checkUserSign != null) {
    executeWorkCheckList.checkUserSign = checkUserSign;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    executeWorkCheckList.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    executeWorkCheckList.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    executeWorkCheckList.createDate = createDate;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    executeWorkCheckList.id = id;
  }
  final String? ticketPlanId = jsonConvert.convert<String>(json['ticketPlanId']);
  if (ticketPlanId != null) {
    executeWorkCheckList.ticketPlanId = ticketPlanId;
  }
  final String? ticketReceiptId = jsonConvert.convert<String>(json['ticketReceiptId']);
  if (ticketReceiptId != null) {
    executeWorkCheckList.ticketReceiptId = ticketReceiptId;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    executeWorkCheckList.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    executeWorkCheckList.updateDate = updateDate;
  }
  final int? sort = jsonConvert.convert<int>(json['sort']);
  if (sort != null) {
    executeWorkCheckList.sort = sort;
  }
  return executeWorkCheckList;
}

Map<String, dynamic> $ExecuteWorkCheckListToJson(ExecuteWorkCheckList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['checkDate'] = entity.checkDate;
  data['checkImage'] = entity.checkImage;
  data['checkProject'] = entity.checkProject;
  data['checkReason'] = entity.checkReason;
  data['checkUserId'] = entity.checkUserId;
  data['checkUserName'] = entity.checkUserName;
  data['checkUserSign'] = entity.checkUserSign;
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['id'] = entity.id;
  data['ticketPlanId'] = entity.ticketPlanId;
  data['ticketReceiptId'] = entity.ticketReceiptId;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  data['sort'] = entity.sort;
  return data;
}

extension ExecuteWorkCheckListExtension on ExecuteWorkCheckList {
  ExecuteWorkCheckList copyWith({
    String? checkDate,
    List<String>? checkImage,
    String? checkProject,
    String? checkReason,
    String? checkUserId,
    String? checkUserName,
    List<String>? checkUserSign,
    String? companyCode,
    String? createBy,
    String? createDate,
    String? id,
    String? ticketPlanId,
    String? ticketReceiptId,
    String? updateBy,
    String? updateDate,
    int? sort,
  }) {
    return ExecuteWorkCheckList()
      ..checkDate = checkDate ?? this.checkDate
      ..checkImage = checkImage ?? this.checkImage
      ..checkProject = checkProject ?? this.checkProject
      ..checkReason = checkReason ?? this.checkReason
      ..checkUserId = checkUserId ?? this.checkUserId
      ..checkUserName = checkUserName ?? this.checkUserName
      ..checkUserSign = checkUserSign ?? this.checkUserSign
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..id = id ?? this.id
      ..ticketPlanId = ticketPlanId ?? this.ticketPlanId
      ..ticketReceiptId = ticketReceiptId ?? this.ticketReceiptId
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate
      ..sort = sort ?? this.sort;
  }
}

ExecuteWorkCheckLists $ExecuteWorkCheckListsFromJson(Map<String, dynamic> json) {
  final ExecuteWorkCheckLists executeWorkCheckLists = ExecuteWorkCheckLists();
  final String? checkDate = jsonConvert.convert<String>(json['checkDate']);
  if (checkDate != null) {
    executeWorkCheckLists.checkDate = checkDate;
  }
  final String? checkImage = jsonConvert.convert<String>(json['checkImage']);
  if (checkImage != null) {
    executeWorkCheckLists.checkImage = checkImage;
  }
  final String? checkProject = jsonConvert.convert<String>(json['checkProject']);
  if (checkProject != null) {
    executeWorkCheckLists.checkProject = checkProject;
  }
  final String? checkReason = jsonConvert.convert<String>(json['checkReason']);
  if (checkReason != null) {
    executeWorkCheckLists.checkReason = checkReason;
  }
  final String? checkUserId = jsonConvert.convert<String>(json['checkUserId']);
  if (checkUserId != null) {
    executeWorkCheckLists.checkUserId = checkUserId;
  }
  final String? checkUserName = jsonConvert.convert<String>(json['checkUserName']);
  if (checkUserName != null) {
    executeWorkCheckLists.checkUserName = checkUserName;
  }
  final String? checkUserSign = jsonConvert.convert<String>(json['checkUserSign']);
  if (checkUserSign != null) {
    executeWorkCheckLists.checkUserSign = checkUserSign;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    executeWorkCheckLists.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    executeWorkCheckLists.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    executeWorkCheckLists.createDate = createDate;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    executeWorkCheckLists.id = id;
  }
  final String? ticketPlanId = jsonConvert.convert<String>(json['ticketPlanId']);
  if (ticketPlanId != null) {
    executeWorkCheckLists.ticketPlanId = ticketPlanId;
  }
  final String? ticketReceiptId = jsonConvert.convert<String>(json['ticketReceiptId']);
  if (ticketReceiptId != null) {
    executeWorkCheckLists.ticketReceiptId = ticketReceiptId;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    executeWorkCheckLists.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    executeWorkCheckLists.updateDate = updateDate;
  }
  return executeWorkCheckLists;
}

Map<String, dynamic> $ExecuteWorkCheckListsToJson(ExecuteWorkCheckLists entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['checkDate'] = entity.checkDate;
  data['checkImage'] = entity.checkImage;
  data['checkProject'] = entity.checkProject;
  data['checkReason'] = entity.checkReason;
  data['checkUserId'] = entity.checkUserId;
  data['checkUserName'] = entity.checkUserName;
  data['checkUserSign'] = entity.checkUserSign;
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['id'] = entity.id;
  data['ticketPlanId'] = entity.ticketPlanId;
  data['ticketReceiptId'] = entity.ticketReceiptId;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  return data;
}

extension ExecuteWorkCheckListsExtension on ExecuteWorkCheckLists {
  ExecuteWorkCheckLists copyWith({
    String? checkDate,
    String? checkImage,
    String? checkProject,
    String? checkReason,
    String? checkUserId,
    String? checkUserName,
    String? checkUserSign,
    String? companyCode,
    String? createBy,
    String? createDate,
    String? id,
    String? ticketPlanId,
    String? ticketReceiptId,
    String? updateBy,
    String? updateDate,
  }) {
    return ExecuteWorkCheckLists()
      ..checkDate = checkDate ?? this.checkDate
      ..checkImage = checkImage ?? this.checkImage
      ..checkProject = checkProject ?? this.checkProject
      ..checkReason = checkReason ?? this.checkReason
      ..checkUserId = checkUserId ?? this.checkUserId
      ..checkUserName = checkUserName ?? this.checkUserName
      ..checkUserSign = checkUserSign ?? this.checkUserSign
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..id = id ?? this.id
      ..ticketPlanId = ticketPlanId ?? this.ticketPlanId
      ..ticketReceiptId = ticketReceiptId ?? this.ticketReceiptId
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate;
  }
}

ExecuteWorkSafetyMeasuresList $ExecuteWorkSafetyMeasuresListFromJson(Map<String, dynamic> json) {
  final ExecuteWorkSafetyMeasuresList executeWorkSafetyMeasuresList = ExecuteWorkSafetyMeasuresList();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    executeWorkSafetyMeasuresList.companyCode = companyCode;
  }
  final String? controlMeansId = jsonConvert.convert<String>(json['controlMeansId']);
  if (controlMeansId != null) {
    executeWorkSafetyMeasuresList.controlMeansId = controlMeansId;
  }
  final String? controlMeansName = jsonConvert.convert<String>(json['controlMeansName']);
  if (controlMeansName != null) {
    executeWorkSafetyMeasuresList.controlMeansName = controlMeansName;
  }
  final String? controlPointId = jsonConvert.convert<String>(json['controlPointId']);
  if (controlPointId != null) {
    executeWorkSafetyMeasuresList.controlPointId = controlPointId;
  }
  final String? controlPointName = jsonConvert.convert<String>(json['controlPointName']);
  if (controlPointName != null) {
    executeWorkSafetyMeasuresList.controlPointName = controlPointName;
  }
  final String? controlAuthId = jsonConvert.convert<String>(json['controlAuthId']);
  if (controlAuthId != null) {
    executeWorkSafetyMeasuresList.controlAuthId = controlAuthId;
  }
  final String? controlAuthName = jsonConvert.convert<String>(json['controlAuthName']);
  if (controlAuthName != null) {
    executeWorkSafetyMeasuresList.controlAuthName = controlAuthName;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    executeWorkSafetyMeasuresList.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    executeWorkSafetyMeasuresList.createDate = createDate;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    executeWorkSafetyMeasuresList.id = id;
  }
  final int? isInvolve = jsonConvert.convert<int>(json['isInvolve']);
  if (isInvolve != null) {
    executeWorkSafetyMeasuresList.isInvolve = isInvolve;
  }
  final String? safetyMeasures = jsonConvert.convert<String>(json['safetyMeasures']);
  if (safetyMeasures != null) {
    executeWorkSafetyMeasuresList.safetyMeasures = safetyMeasures;
  }
  final String? safetyMeasuresId = jsonConvert.convert<String>(json['safetyMeasuresId']);
  if (safetyMeasuresId != null) {
    executeWorkSafetyMeasuresList.safetyMeasuresId = safetyMeasuresId;
  }
  final String? ticketPlanId = jsonConvert.convert<String>(json['ticketPlanId']);
  if (ticketPlanId != null) {
    executeWorkSafetyMeasuresList.ticketPlanId = ticketPlanId;
  }
  final String? ticketReceiptId = jsonConvert.convert<String>(json['ticketReceiptId']);
  if (ticketReceiptId != null) {
    executeWorkSafetyMeasuresList.ticketReceiptId = ticketReceiptId;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    executeWorkSafetyMeasuresList.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    executeWorkSafetyMeasuresList.updateDate = updateDate;
  }
  final List<String>? preparedSign = (json['preparedSign'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (preparedSign != null) {
    executeWorkSafetyMeasuresList.preparedSign = preparedSign;
  }
  final List<String>? userSign = (json['userSign'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (userSign != null) {
    executeWorkSafetyMeasuresList.userSign = userSign;
  }
  final List<String>? images = (json['images'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<String>(e) as String).toList();
  if (images != null) {
    executeWorkSafetyMeasuresList.images = images;
  }
  final String? workSort = jsonConvert.convert<String>(json['workSort']);
  if (workSort != null) {
    executeWorkSafetyMeasuresList.workSort = workSort;
  }
  return executeWorkSafetyMeasuresList;
}

Map<String, dynamic> $ExecuteWorkSafetyMeasuresListToJson(ExecuteWorkSafetyMeasuresList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['controlMeansId'] = entity.controlMeansId;
  data['controlMeansName'] = entity.controlMeansName;
  data['controlPointId'] = entity.controlPointId;
  data['controlPointName'] = entity.controlPointName;
  data['controlAuthId'] = entity.controlAuthId;
  data['controlAuthName'] = entity.controlAuthName;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['id'] = entity.id;
  data['isInvolve'] = entity.isInvolve;
  data['safetyMeasures'] = entity.safetyMeasures;
  data['safetyMeasuresId'] = entity.safetyMeasuresId;
  data['ticketPlanId'] = entity.ticketPlanId;
  data['ticketReceiptId'] = entity.ticketReceiptId;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  data['preparedSign'] = entity.preparedSign;
  data['userSign'] = entity.userSign;
  data['images'] = entity.images;
  data['workSort'] = entity.workSort;
  return data;
}

extension ExecuteWorkSafetyMeasuresListExtension on ExecuteWorkSafetyMeasuresList {
  ExecuteWorkSafetyMeasuresList copyWith({
    String? companyCode,
    String? controlMeansId,
    String? controlMeansName,
    String? controlPointId,
    String? controlPointName,
    String? controlAuthId,
    String? controlAuthName,
    String? createBy,
    String? createDate,
    String? id,
    int? isInvolve,
    String? safetyMeasures,
    String? safetyMeasuresId,
    String? ticketPlanId,
    String? ticketReceiptId,
    String? updateBy,
    String? updateDate,
    List<String>? preparedSign,
    List<String>? userSign,
    List<String>? images,
    String? workSort,
  }) {
    return ExecuteWorkSafetyMeasuresList()
      ..companyCode = companyCode ?? this.companyCode
      ..controlMeansId = controlMeansId ?? this.controlMeansId
      ..controlMeansName = controlMeansName ?? this.controlMeansName
      ..controlPointId = controlPointId ?? this.controlPointId
      ..controlPointName = controlPointName ?? this.controlPointName
      ..controlAuthId = controlAuthId ?? this.controlAuthId
      ..controlAuthName = controlAuthName ?? this.controlAuthName
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..id = id ?? this.id
      ..isInvolve = isInvolve ?? this.isInvolve
      ..safetyMeasures = safetyMeasures ?? this.safetyMeasures
      ..safetyMeasuresId = safetyMeasuresId ?? this.safetyMeasuresId
      ..ticketPlanId = ticketPlanId ?? this.ticketPlanId
      ..ticketReceiptId = ticketReceiptId ?? this.ticketReceiptId
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate
      ..preparedSign = preparedSign ?? this.preparedSign
      ..userSign = userSign ?? this.userSign
      ..images = images ?? this.images
      ..workSort = workSort ?? this.workSort;
  }
}
